home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.hp < prev    next >
Text File  |  1996-07-05  |  5KB  |  143 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.5 $
  33. *      (this file has not been tested for accuracy)
  34. *
  35. * File Description:
  36. *        system dependent header
  37. *        HP-UX version
  38. *
  39. * Modifications:
  40. * --------------------------------------------------------------------------
  41. * Date     Name        Description of modification
  42. * -------  ----------  -----------------------------------------------------
  43. *
  44. * ==========================================================================
  45. */
  46. #ifndef _NCBILCL_
  47. #define _NCBILCL_
  48.  
  49. /* PLATFORM DEFINITION FOR Hewlett-Packard UNDER HP-UX */
  50.  
  51. #define COMP_SYSV
  52. #define OS_UNIX
  53. #define OS_UNIX_SYSV
  54. #define PROC_HPPA
  55. #define WIN_DUMB
  56.  
  57. /*----------------------------------------------------------------------*/
  58. /*      Desired or available feature list                               */
  59. /*----------------------------------------------------------------------*/
  60. #define SYSV_IPC_AVAIL    /* System V Interprocess Communication available */
  61.  
  62. /*----------------------------------------------------------------------*/
  63. /*      #includes                                                       */
  64. /*----------------------------------------------------------------------*/
  65. #include <sys/types.h>
  66. #include <limits.h>
  67. #include <sys/stat.h>
  68. #include <stddef.h>
  69. #include <stdio.h>
  70. #include <ctype.h>
  71. #include <string.h>
  72. #include <malloc.h>
  73. #include <memory.h>
  74. #include <stdlib.h>
  75. #include <math.h>
  76. #include <errno.h>
  77. #include <float.h>
  78.  
  79. /*----------------------------------------------------------------------*/
  80. /*      Missing ANSI-isms                                               */
  81. /*----------------------------------------------------------------------*/
  82. #define VAR_ARGS    /* use Sun's varargs.h, not ANSI's stdarg.h */
  83. #define signed    /* "signed" keyword not accepted by Sun C */
  84. #define const    /* "const" keyword not accepted by Sun C */
  85. #define noalias    /* "noalias" keyword not accepted by Sun C */
  86. #define volatile    /* "volatile" keyword not accepted by Sun C */
  87. #ifndef SEEK_SET
  88. #define SEEK_SET    0
  89. #define SEEK_CUR    1
  90. #define SEEK_END    2
  91. #endif
  92. #ifndef FILENAME_MAX
  93. #define FILENAME_MAX 1024
  94. #endif
  95.  
  96. /*----------------------------------------------------------------------*/
  97. /*      Aliased Logicals, Datatypes                                     */
  98. /*----------------------------------------------------------------------*/
  99.  
  100. /*----------------------------------------------------------------------*/
  101. /*      Misc Macros                                                     */
  102. /*----------------------------------------------------------------------*/
  103. #define PROTO(x)    ()    /* Function prototypes faked in */
  104. #define VPROTO(x)    ()    /* Prototype for variable argument list */
  105. #define DIRDELIMCHR    '/'
  106. #define DIRDELIMSTR    "/"
  107. #define CWDSTR    "."
  108.  
  109. #define KBYTE    (1024)
  110. #define MBYTE    (1048576)
  111.  
  112. #define IS_BIG_ENDIAN
  113. #define TEMPNAM_AVAIL
  114.  
  115. /*----------------------------------------------------------------------*/
  116. /*      For importing MS_DOS code                                       */
  117. /*----------------------------------------------------------------------*/
  118. #define near
  119. #define far
  120. #define huge
  121. #define cdecl
  122. #define pascal
  123. #define _pascal
  124. #define _near
  125. #define _far
  126. #define _huge
  127. #define _cdecl
  128.  
  129. /*----------------------------------------------------------------------*/
  130. /*      Macros for Floating Point                                       */
  131. /*----------------------------------------------------------------------*/
  132. #define EXP2(x) exp((x)*LN2)
  133. #define LOG2(x) (log(x)*(1./LN2))
  134. #define EXP10(x) exp((x)*LN10)
  135. #define LOG10(x) (log(x)*(1./LN10))
  136.  
  137. /*----------------------------------------------------------------------*/
  138. /*      Macros Defining Limits                                          */
  139. /*----------------------------------------------------------------------*/
  140. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  141.  
  142. #endif
  143.